package com.itheima.config;

import com.itheima.component.MyLocaleResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: hsp
 * @Date: 2022/12/8-12-08-0:03
 * @Description: com.itheima.config
 * @version: 1.0.0
 */
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {

    //注册国际化信息器
    @Bean
    public LocaleResolver localeResolver() {
        return new MyLocaleResolver();
    }

}
